

package com.hazelcast.query.impl.predicates;

import com.hazelcast.query.Predicate;
import com.hazelcast.query.impl.IndexRegistry;

/**
 * Optimizer which just returns the original predicate.
 * It's useful when optimizer is disabled.
 */
public class EmptyOptimizer implements QueryOptimizer {
    @Override
    public <K, V> Predicate<K, V> optimize(Predicate<K, V> predicate, IndexRegistry indexes) {
        return predicate;
    }
}
